import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const GOODS: AppRouteRecordRaw = {
  path: '/goods',
  name: 'goods',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.goods',
    requiresAuth: true,
    icon: 'icon-archive',
    order: -97,
    roles: ['*'],
  },
  children: [
    {
      path: 'goodslist',
      name: 'goodslist',
      component: () => import('@/views/goods/index/index.vue'),
      meta: {
        locale: 'menu.goods.index',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'goodsgray',
      name: 'goodsgray',
      component: () => import('@/views/goods/gray/index.vue'),
      meta: {
        locale: 'menu.goods.gray',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'goodsadd',
      name: 'goodsadd',
      component: () => import('@/views/goods/index/add.vue'),
      meta: {
        locale: 'menu.goods.indexAdd',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default GOODS;
